﻿using AutoParameter;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace APP
{
    [Node("ExampleNode")]
    public class ExampleNode : IFlowNode<InputModel, OutputModel>
    {
        public async Task<OutputModel> ExecuteAsync(InputModel input)
        {
            // 模拟异步操作
            await Task.Delay(100);
            return new OutputModel
            {
                Result = input.Value * 2
            };
        }
    }

    public class InputModel
    {
        [Node("Value")]
        public int Value { get; set; }
    }

    public class OutputModel
    {
        [Node("Result")]
        public int Result { get; set; }
    }
}
